package com.lin.cloud.disk.service;

import com.lin.cloud.disk.entity.pojo.DepartmentPermission;

import java.util.List;

/**
 * (DepartmentPermission)表服务接口
 *
 * @author ljc
 * @since 2020-12-10 16:47:09
 */
public interface IDepartmentPermissionService {

    /**
     * 查询权限ID列表 通过部门ID列表
     * @param departmentIdList
     * @return
     */
    List<Long> selectPermissionIdListByDepartmentIdList(List<Long> departmentIdList);

    /**
     *  批量添加部门授权记录
     * @param departmentPermissionList
     */
    void batchInsertDepartmentPermission(List<DepartmentPermission> departmentPermissionList);

    /**
     *  批量删除部门授权记录
     * @param departmentId
     * @param departmentPermissionIdList
     */
    void batchDeleteDepartmentPermission(Long departmentId, List<Long> departmentPermissionIdList);
}